package com.youlai.boot.system.model.form;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;
@Schema(description = "banner表单对象")
@Getter
@Setter
public class BannerForm {
    @Schema(description="ID", example = "1001")
    private Long id;

    @Schema(description="名称", example = "RD001")
    private String name;

    @Schema(description="图片", example = "RD001")
    private String img;

    @Schema(description="banner地址", example = "RD001")
    private String url;

    @Schema(description="内容", example = "RD001")
    private String content;

    @Schema(description="状态(1:启用;0:禁用)", example = "1")
    @Range(min = 0, max = 1, message = "状态值不正确")
    private Integer status;

    @Schema(description="排序(数字越小排名越靠前)", example = "1")
    private Integer sort;
}